﻿#region Usings

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;

#endregion

namespace xConnected.Core.Model
{
    [Serializable]
    [DataContract]
    [DisplayColumn("Name")]
    public partial class MessageFolder : PersistentEntity
    {
        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public short FolderType { get; set; }

        [DataMember]
        public virtual int OwnerId { get; set; }
        
        [DataMember]
        public virtual User Owner { get; set; }

        [DataMember]
        public virtual IList<MessageExpertUser> MessageExpertUsers { get; set; }

        [DataMember]
        public virtual IList<MessageCompanyUser> MessageCompanyUsers { get; set; }

        [DataMember]
        public virtual IList<MessagePositionUser> MessagePositionUsers { get; set; }
    }
}
